package com.zcb.agrimarket.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zcb.agrimarket.pojo.RepairLog;
import com.zcb.agrimarket.service.RepairLogService;
import com.zcb.agrimarket.mapper.RepairLogMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author KarrySmile
* @description 针对表【repair_log(维修记录表)】的数据库操作Service实现
* @createDate 2024-04-05 15:34:48
*/
@Service
@Slf4j
public class RepairLogServiceImpl extends ServiceImpl<RepairLogMapper, RepairLog>
    implements RepairLogService{

    @Autowired
    RepairLogMapper repairLogMapper;

    @Override
    public Boolean updateLogState(long id, int state) {
        return repairLogMapper.updateLogState(id,state);
    }

    @Override
    public Boolean updateDescription(long id, String repairDescription) {
        return repairLogMapper.updateDescription(id,repairDescription);
    }
}




